<table width="100%" border=0 cellpadding=0 cellspacing=0>
  <tr>
    <td>
      <table cellpadding="3" cellspacing="0" border="0" width="100%">
        <tr bgcolor="#7EC1F3">
          <td>
            <a href="<%=BoxStatic.servletDir%>BoxCalendarAction?t=<%
              Calendar tmpDay = (Calendar)currentDate.clone();
              tmpDay.add(Calendar.YEAR, -1);
              out.print(tmpDay.getTime().getTime());
            %>">
            <img SRC="<%=BoxStatic.imageDir%>cal_left.gif" WIDTH="11" HEIGHT="11" BORDER="0">
            Previous year</a>
          </td>
          <td align=center>
            <font face="Arial,Helvetica" SIZE="+1">
            <b><%=currentDate.get(Calendar.YEAR)%></b>
            </font>
          </td>
          <td align=right>
            <a href="<%=BoxStatic.servletDir%>BoxCalendarAction?t=<%
              tmpDay.add(Calendar.YEAR, 2);
              out.print(tmpDay.getTime().getTime());
            %>">
            Next year
            <img SRC="<%=BoxStatic.imageDir%>cal_right.gif" WIDTH="11" HEIGHT="11" BORDER="0"></a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellpadding="0" cellspacing="0" border="0" WIDTH="100%">
<%
tmpDay.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));
tmpDay.set(Calendar.MONTH,Calendar.JANUARY);
Calendar start = Calendar.getInstance(sec.getTimeZone());
Calendar end = Calendar.getInstance(sec.getTimeZone());
Calendar tmpDay2 = Calendar.getInstance(sec.getTimeZone());

for(int i = 0; i < 4; i++)
{
%>
        <tr bgcolor="#cccccc">
          <td>
            <table CELLPADDING="0" CELLSPACING="1" BORDER="0" WIDTH="100%">
              <tr BGCOLOR="#ffffff">
<%
for(int j = 0; j < 3 ;j++)
{
  tmpDay.set(Calendar.DATE,1);
%>
                <td VALIGN="top" align=center>
                  <table BGCOLOR="#ffffff" CELLSPACING="0" CELLPADDING="1" BORDER="0" WIDTH="100%">
                    <tr>
                      <td NOWRAP ALIGN="middle" BGCOLOR="#dcdcdc">&nbsp; <a
                        href="<%=BoxStatic.servletDir%>BoxCalendarAction?v=month&t=<%=tmpDay.getTime().getTime()%>">
                        <tt><b><%=BoxStatic.monthSymbols[tmpDay.get(Calendar.MONTH)]%></b></tt></a> &nbsp;
                      </td>
                    </tr>
                    <tr BGCOLOR="white" >
                      <td NOWRAP align=center><tt>Su Mo Tu We Th Fr Sa</tt></td>
                    </tr>
                    <tr>
                      <td NOWRAP align=center>
                        <tt>
<%
  BoxCalHome.getMonthStartEnd(start, end, tmpDay);
  int currentMonth = tmpDay.get(Calendar.MONTH);
  while(start.before(end))
  {
    tmpDay2.setTime(start.getTime());
    out.print("<a href=\""+BoxStatic.servletDir+"/BoxCalendarAction?v=week&t=" + start.getTime().getTime()+"\">");
    out.print("<font face=\"Courier New, Courier, mono\">");
    for(int jj=0; jj < 7; jj++)
    {
      if (tmpDay2.get(Calendar.MONTH) == currentMonth)
      {
        int day = tmpDay2.get(Calendar.DATE);
        if (day < 10)
          out.print("&nbsp;");
        out.print(day);
        out.print("&nbsp;");
      }
      else
        out.print("&nbsp;&nbsp;&nbsp;");
      tmpDay2.add(Calendar.DATE, 1);
    }
    out.print("</font></a><br>");
    start.add(Calendar.DATE, 7);
  }
%>
                        </tt>
                      </td>
                    </tr>
                  </table>
                </td>
<%
  tmpDay.add(Calendar.MONTH,1);
}
%>
              </tr>
            </table>
          </td>
        </tr>
<%}%>
      </table>
    </td>
  </tr>
  <tr>
    <td align="right"><font color="#ffffff">___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
    ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
    ___ ___ ___ ___ ___ ___ </font></td>
  </tr>
</table>
